#ifndef _PROFILE_
#define _PROFILE_

#ifdef MEMWATCH
#include "memwatch.h"
#endif

#define PROFILETAG_TOTTIME        0
#define PROFILETAG_PARTIO         1
#define PROFILETAG_PEAKFIND       2
#define PROFILETAG_PEAKHALOIO     3
#define PROFILETAG_HALORAD        4
#define PROFILETAG_HALOPERC       5
#define PROFILETAG_PEAKPERC       6
#define PROFILETAG_DOMAINDECOMP   7

#define NUM_PROFILE_TAGS          8

void logProfileTag(int tag);
void printProfileInfo(const char name[], const char *ProfileTagNames[]);
double getTimeProfileTag(int tag);
double getPrevTimeProfileTag(int tag, long NumPrev);
double getTotTimeProfileTag(int tag);

#endif /* _PROFILE_ */
